$OpenBSD: patch-tools_CMakeLists_txt,v 1.2 2016/11/17 09:51:41 fcambus Exp $

Bundled tool atari-hd-image.sh is unusable on OpenBSD because it requires
'mkdosfs' and cannot be patched to use 'newfs_msdos' as a needed option is
missing.

--- tools/CMakeLists.txt.orig	Thu Nov  3 22:25:43 2016
+++ tools/CMakeLists.txt	Fri Nov  4 20:38:26 2016
@@ -8,7 +8,6 @@ if(PYTHONINTERP_FOUND)
 endif(PYTHONINTERP_FOUND)
 
 install(PROGRAMS atari-convert-dir.py DESTINATION ${BINDIR} RENAME atari-convert-dir)
-install(PROGRAMS atari-hd-image.sh DESTINATION ${BINDIR} RENAME atari-hd-image)
 install(PROGRAMS zip2st.sh DESTINATION ${BINDIR} RENAME zip2st)
 
 if(NOT WIN32)
@@ -17,12 +16,6 @@ if(NOT WIN32)
 		COMMAND gzip -c -9 ${CMAKE_CURRENT_SOURCE_DIR}/atari-convert-dir.1 > ${CMAKE_CURRENT_BINARY_DIR}/atari-convert-dir.1.gz
 		DEPENDS atari-convert-dir.1)
 	INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/atari-convert-dir.1.gz DESTINATION ${MANDIR})
-
-	add_custom_target(atari_hd_image_man ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/atari-hd-image.1.gz)
-	add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/atari-hd-image.1.gz
-		COMMAND gzip -c -9 ${CMAKE_CURRENT_SOURCE_DIR}/atari-hd-image.1 > ${CMAKE_CURRENT_BINARY_DIR}/atari-hd-image.1.gz
-		DEPENDS atari-hd-image.1)
-	INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/atari-hd-image.1.gz DESTINATION ${MANDIR})
 
 	add_custom_target(zip2st_man ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/zip2st.1.gz)
 	add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/zip2st.1.gz
